import { Component, Input, Output, OnInit, OnDestroy, AfterViewInit, OnChanges } from '@angular/core';
import { SimpleAnimate } from '../../animation/my.simple.animation';

import { Notice } from '../../model/notice.model';

@Component({
  selector: 'app-notice',
  templateUrl: './notice.component.html',
  styleUrls: ['./notice.component.css'],
  animations: [SimpleAnimate]
})
export class NoticeComponent implements OnInit {


  @Input()
  noticeMsg: Notice;

  @Input()
  noticeStyle: string;

  constructor() { }

  ngOnInit() { }

  close(index) {
    delete this.noticeMsg.msgs[index];
  }
}
